]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: drop global.get_current_time() arguments to close
authorRay Strode <rstrode@redhat.com>
Wed, 20 Feb 2013 18:12:42 +0000 (13:12 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 20 Feb 2013 19:16:53 +0000 (14:16 -0500)
Modal dialogs take an optional timestamp in their close method.
If the timestamp is not passed in, then global.get_current_time()
is used.

Some callers of the close method pass in global.get_current_time()
unnecessarly (since it's the default).

This commit drops the argument for those cases.

https://bugzilla.gnome.org/show_bug.cgi?id=694296

js/ui/endSessionDialog.js
js/ui/extensionDownloader.js

index 11dbc9d560c1adf44bc0730d98a0016ac90e0eca..7d46144ee2243ab713e3c43f030886082187eea1 100644 (file)
@@ -395,7 +395,7 @@ const EndSessionDialog = new Lang.Class({
     cancel: function() {
         this._stopTimer();
         this._dbusImpl.emit_signal('Canceled', null);
-        this.close(global.get_current_time());
+        this.close();
     },
 
     _confirm: function(signal) {
@@ -454,7 +454,7 @@ const EndSessionDialog = new Lang.Class({
             let item = new ListItem(app, reason);
             item.connect('activate',
                          Lang.bind(this, function() {
-                             this.close(global.get_current_time());
+                             this.close();
                          }));
             this._applicationList.add(item.actor, { x_fill: true });
             this._stopTimer();
index 7f9a8718b195cba13e33950710a2bd58594e370f..23bdddc10f919a884af17c215da7b82359e73ff8 100644 (file)
@@ -215,7 +215,7 @@ const InstallExtensionDialog = new Lang.Class({
     },
 
     _onCancelButtonPressed: function(button, event) {
-        this.close(global.get_current_time());
+        this.close();
         this._invocation.return_value(GLib.Variant.new('(s)', ['cancelled']));
     },
 
@@ -257,7 +257,7 @@ const InstallExtensionDialog = new Lang.Class({
             gotExtensionZipFile(session, message, uuid, dir, callback, errback);
         }));
 
-        this.close(global.get_current_time());
+        this.close();
     }
 });